.import {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

/* 工具栏样式 */
.import .toolbar {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.import .toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.import .page-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.import .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 内容区域 */
.import-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* 文件夹选择区域 */
.folder-selection {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.section-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* 空选择状态 */
.empty-selection {
  text-align: center;
  padding: 60px 20px;
}

.empty-selection-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-selection h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #333;
}

.empty-selection p {
  font-size: 16px;
  color: #666;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

/* 已选择文件夹 */
.selected-folders {
  border: 2px dashed #007AFF;
  border-radius: 8px;
  padding: 20px;
  background-color: #f8f9ff;
}

.folders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.folders-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

.folders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.folder-item {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.folder-icon {
  font-size: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}

.folder-info {
  flex: 1;
  min-width: 0;
}

.folder-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.folder-path {
  font-size: 14px;
  color: #666;
  word-break: break-all;
}

/* 导入进度区域 */
.import-progress {
  background-color: white;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 32px 0;
  color: #333;
}

.progress-content {
  max-width: 500px;
  margin: 0 auto;
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007AFF, #5AC8FA);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.progress-numbers {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.progress-percentage {
  font-size: 24px;
  font-weight: 600;
  color: #007AFF;
}

.current-file {
  font-size: 14px;
  color: #666;
  padding: 12px;
  background-color: #f8f8f8;
  border-radius: 6px;
  word-break: break-all;
  margin-top: 16px;
}

/* 错误消息 */
.error-message {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 20px;
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  margin-top: 16px;
}

.error-icon {
  font-size: 32px;
  margin-right: 16px;
  flex-shrink: 0;
}

.error-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #c53030;
}

.error-text p {
  font-size: 14px;
  color: #742a2a;
  margin: 0;
  line-height: 1.5;
}

/* 成功消息 */
.success-message {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 20px;
  background-color: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 8px;
  margin-top: 16px;
}

.success-icon {
  font-size: 32px;
  margin-right: 16px;
  flex-shrink: 0;
}

.success-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #276749;
}

.success-text p {
  font-size: 14px;
  color: #22543d;
  margin: 0;
  line-height: 1.5;
}

/* 导入历史 */
.import-history {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: #f8f8f8;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.history-item:hover {
  background-color: #f0f0f0;
}

.history-info {
  flex: 1;
  min-width: 0;
}

.history-date {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.history-details {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.history-path {
  display: block;
  margin-top: 2px;
  word-break: break-all;
}

.history-status {
  margin-left: 16px;
  flex-shrink: 0;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.success {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .import .toolbar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    min-height: auto;
  }
  
  .import .toolbar-left,
  .import .toolbar-right {
    width: 100%;
    justify-content: center;
  }
  
  .import-content {
    padding: 16px;
  }
  
  .folder-selection,
  .import-progress,
  .import-history {
    padding: 16px;
  }
  
  .empty-selection {
    padding: 40px 16px;
  }
  
  .empty-selection-icon {
    font-size: 48px;
  }
  
  .folders-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .folder-item {
    padding: 12px;
  }
  
  .folder-icon {
    font-size: 20px;
    margin-right: 12px;
  }
  
  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .history-status {
    margin-left: 0;
    align-self: flex-end;
  }
}